#pragma once
#include "gameobject.h"
class MachineObj :
	public GameObject
{
private:
	//Data
	bool IsBroken;
	int RepairedStateImageID;
	int BrokenStateImageID;

public:
	MachineObj(void);
	~MachineObj(void);

	//Defualt Object Overrides
	void Update(float deltaTime) override;
	void Render(void) const override;
	void HandleCollision(GameObject& other, CollisionInfo& info) override;

	//Accessors and Mutators
	bool GetIsBroken();
	void RepairMachine();
	void SetState(bool Broken);

	void SetRepairedImageID( int index );
	void SetBrokenImageID( int index );

};

